package com.kly.chatter.db.dao;

import com.fqgj.common.base.BaseMapper;
import com.kly.chatter.db.entity.PrivateUnlockRewardDBO;
import com.kly.chatter.db.entity.PrivateUnlockRewardEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * User: a
 * Date: 2023-10-07
 * Time: 15:48:32.843
 */

public interface PrivateUnlockRewardDao extends BaseMapper<PrivateUnlockRewardEntity> {
    List<PrivateUnlockRewardDBO> listPrivateUnlockReward(Integer type);

    BigDecimal getUnlockTotalReward(String chatterCode, Integer rewardDate);

    BigDecimal getUnlockRewardByType(String chatterCode, Integer rewardDate, Integer type, Integer rewardType);

    /**
     * 读取解锁个数
     * @param chatterCode
     * @param rewardDate
     * @param type
     * @return
     */
    Integer getUnlockNum(String chatterCode, Integer rewardDate, Integer type);
}